To use the services of the base video output component, your video output component must open a connection to the base video output component. It does this in its routine for processing open requests from the Component Manager. How to connect to the base video output component is shown in Listing 4 .
Listing 4 Connecting to the base video output component
QTVideoOutputComponent baseVideoOutput;
OSErr err;
err = OpenADefaultComponent (kVideoOutputComponentType,
kVideoOutputComponentBaseSubType,
&baseVideoOutput);
err = ComponentSetTarget (baseVideoOutput,
self);
globals->baseVideoOutput = baseVideoOutput;
| Previous | Chapter Contents | Chapter Top | Next |